AkpScript
|
Previous Top Next |
functions
|
Description
|
function sizeinK(size: integer): string;
|
Change numeric size into kbe.g.
sizeinK(112640) will result 112.64kb
|
function Param : Tstrings;
|
File selected in shell context menuFor use
with context menu script only!e.g.for i := 0 to
ParamCount -1 do Writeln(param.strings[i];
|
procedure New(name : string);
|
Create new archivee.g. New('c:\new
archive.zip');
|
procedure Open(name : string);
|
Open existing archivee.g. Open('c:\another
archive.zip');
|
procedure Close;
|
Close archivee.g. Close;
|
procedure Test;
|
Test archive;e.g. Test;
|
procedure Extract(what, too : string)
|
Extract all or selected
filese.g.Open('c:\anarchive.zip');Useextrpath(True);Useextroverwrite(True);Extract('*.jpg','c:\dir1');
|
procedure Add(name : string);
|
Add filee.g.New('c:\a new
archive.zip');UseSubdir(True);Add('c:\temp\*.*');Add('c:\xyz.log');DoAdd;
|
procedure DoAdd;
|
Start add filese.g. Doadd;
|
procedure Del(what : string);
|
Delete files in an
archivee.g.Open('c:\anarchive.zip');Del('xyz.txt');Close;
|
procedure Ren(what,too : string);
|
Rename file in a zip file (zip only!)e.g.
Ren('a.txt','b.txt');
|
procedure Convert(what,totype : string);
|
Convert an archive to another type.Warning!
Directory structure is removed when
converte.g.Convert('c:\arctoconvert.zip','CAB');
|
procedure Password(what : string);
|
Specify password for extract and add.e.g.
Password('your password');
|
procedure UseVerCtrl(toggle : boolean);
|
|
procedure Useextrpath(toggle : boolean);
|
|
procedure Useextroverwrite(toggle : boolean);
|
|
procedure Useaddpath(toggle : boolean);
|
|
procedure Userelativepath(toggle : boolean);
|
|
procedure Usesubdir(toggle : boolean);
|
|
procedure RunFile(what : string);
|
|
procedure MoveFile(what, too : string);
|
|
procedure RenFile(what, too : string);
|
|
procedure DelFile(what : string);
|
|
procedure CopyFile(what,too : string);
|
|
procedure MakeDir(what : string);
|
|
procedure DelDir(what : string);
|
|
procedure Sort(index : integer; accending : boolean);
|
|
procedure OpenDir(what : string);
|
|
function Total_Contents : integer;
|
|
function Contents_Filename(which : integer) :
String;
|
|
unction Contents_FileDefPath(which : integer) :
String;
|
|
function Contents_FileSize(which : integer) :
Integer;
|
|
function Contents_FileCompSize(which : integer) :
Integer;
|
|
function Contents_FileSelected(which : integer) :
Boolean;
|
|
function Contents_FileType(which : integer) :
String;
|
|
function Contents_FileDateTime(which : integer) :
TDatetime;
|
|
procedure Select_File(which : integer);
|
|
procedure DeSelect_File(which : integer);
|
|
function Mask_Select_File(mask : string) : integer
|
|
procedure Clear_select;
|
|
function TempPath : String;
|
|
function MydocuPath : string;
|
|
function DesktopPath : string;
|
|
function SystemPath : string;
|
|
function ProgramPath : string;
|
|
function CurrentPath : string;
|
|